<?php
/**
 * 类名称
 * User: 13651
 * Time: 2025/9/18 15:16
 */

namespace App\Services;

use App\Extensions\BaseService;
use App\Repository\LeshuaUionAreaCodeRepo;
use Illuminate\Database\Eloquent\Builder;
use Illuminate\Database\Eloquent\Collection;


class LeshuaUnionAreaCodeService   extends BaseService
{
    /**
     * 更新数据
     * @param array $data
     * @return bool|int
     */
    public function saveDataService(array $data )
    {
        return LeshuaUionAreaCodeRepo::getInstance()->saveData($data);
    }

    /**
     * 获取数据
     * @param array $where
     * @return Builder[]|Collection
     */
    public function getParentCodeListService(array $where)
    {
        return LeshuaUionAreaCodeRepo::getInstance()->getParentCodeList($where);
    }

    /**
     * 获取指定条件数据
     * @param array $where
     * @return Builder[]|Collection
     */
    public function getByWhereService(array $where)
    {
        return LeshuaUionAreaCodeRepo::getInstance()->getByWhere($where);
    }
}